{% extends 'index3.html'%}
{% block main %}
<div class="page-header">
    <h1>数据展示</h1>  <!--渲染"xxx"-->
</div>
<form method="get">
    <div class="input-group" style="width: 200px;">
        <input type="text" name="val" class="form-control" placeholder="关键字" value="{{search}}">
        <span class="input-group-btn">
            <button class="btn btn-default" type="submit"><span class="glyphicon glyphion-zoom-out" aria-hidden="true"><span class="glyphicon glyphicon-search"></span>&nbsp搜索</button>
        </span>
    </div>
</form>
<div><table class="table table-bordered table-hover">
    <caption>用户信息 &nbsp;&nbsp;</caption>
    <tr>
    
        <th>id</th>
        <th>时间</th>
        <th>数据1</th>
        <th>数据2</th>
        
        <th>操作</th>
    </tr>
    {%for i in bks%}
    <tr>
   
        <td>{{i.pk}}</td>
        <td>{{i.time}}</td>
        <td>{{i.data1}}</td>
        <td>{{i.data2}}</td>
        
        <td>
        <a href="//?pk={{i.pk}}" class="btn btn-danger btn-sm">查看数据流</a>
        </td>
     
    </tr>
    {%endfor%}
</table></div>
{% endblock %}

